<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<head>
	<sx:head cache="false" />
	<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css" type="text/css" />
</head>

<div>
	<display:table name="listModel" requestURI="FamiliarRelationshipAction_list" class="listable" cellpadding="0" cellspacing="0" pagesize="12">
	  <display:column property="familiarRelationshipType" title="Relative"/>
	  <display:column property="fullName"  title="First Name/Last Name"/>
	  <display:column property="birthday"  title="Birthday" format="{0,date,dd/MM/yyyy}"/>
	  <display:column property="dni"  title="DNI"/>
	  <display:column property="cuilOrCuit"  title="CUIL"/>
	  
	  <s:if test="hasPermission(permissionNameConverter.getManageEmployeeInformationPermission())">
	  <s:url id="edit_action" action="FamiliarRelationshipAction_edit" >
	  	<s:param name="personId" value="%{personId}"  />
	  </s:url>
  	  <display:column value="edit" href="${edit_action}" paramId="requestId" paramProperty="id" />
  	  
  	  <s:url id="delete_action" action="FamiliarRelationshipAction_delete" >
  	  	<s:param name="personId" value="%{personId}"  />
  	  </s:url>
  	  <display:column value="remove" href="${delete_action}" paramId="requestId" paramProperty="id" />
	  </s:if>
  	  
	</display:table>
</div>
<s:if test="hasPermission(permissionNameConverter.getManageEmployeeInformationPermission())">
<div class="right">
	<s:url id="create_action" action="FamiliarRelationshipAction_create"  >
		<s:param name="personId" value="%{personId}"  />
	</s:url>
	<s:a href="%{create_action}" cssClass="Add" >Add Relative</s:a>
</div>
</s:if>

